import {Component, EventEmitter, OnInit, Output } from '@angular/core';

@Component({
  selector: 'app-left',
  templateUrl: './left.component.html',
  styleUrls: ['./left.component.less']
})
export class LeftComponent implements OnInit {
  // active: boolean;
  index : number;
  @Output() emitId = new EventEmitter<object>();
  constructor() { }

  ngOnInit() {
      this.index = 0;
      // this.active = true;
  }

  toggle($scope) {
      this.index = $scope;
     // this.active = !this.active;

  }

  dragStart(componentType: string) {
    this.emitId.emit({componentType: componentType});
  }

}
